package com.smile.model.response;

import com.smile.model.response.response.GetDeviceGroup;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.security.PrivateKey;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 获取组织列表Response类
 *
 * @author 宁海博
 */
@Data
@ToString
public class GetOrganizationListResponse implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    private String organizationName;
    private String chargeName;
    private Integer sort;
    private LocalDateTime createTime;
    private Boolean status;
    private String organizationCode;
    private Long parentId;
    /**
     * 父级标识
     *  0: 非父级 （默认）
     *  1: 父级
     */
    private Integer parentFlag = 0;
    private Integer level;
    private List<GetOrganizationListResponse> children;
    private List<GetDeviceGroup> deviceGroups;
    /**
     * disabled 0:正常 1:禁用
     */
    private Integer disabled;
    /**
     * ancestors 祖籍字段
     */
    private String ancestors;
}
